package com.jingbian.cppccbackend.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jingbian.cppccbackend.entity.Admins;
import com.jingbian.cppccbackend.entity.Department;
import com.jingbian.cppccbackend.entity.vo.PageVO;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author yezi
 * @since 2025-02-09
 */

public interface SuperService extends IService<Department> {
    List<Department> getProList();
    List<Department> getPubList();
    void addProDepartment(Department department);
    void addPubDepartment(Department department);
    void deleteProDepartment(Integer id);
    void deletePubDepartment(Integer id);
    void updatePassword(Integer aid, String newPassword);

    PageVO<Admins> getAdmins(Integer pageNum, Integer pageSize, String sortType, String permissionType, String statusType, String searchText);

    void disableAdmin(Integer aid);

    Admins getAdminById(Integer aid);

    void updateAdmin(Admins admin);

    void addAdmin(Admins admin);

    List<Admins> getAdminsForExport(String sortType, String permissionType, String statusType, String searchText);

    boolean checkAccountExists(String account);
}
